home *** CD-ROM | disk | FTP | other *** search
/ CD Concept 6 / CD Concept 06.iso / mac / UTILITAIRE / Little Smalltalk v3.1.4 / C Source / Headers / CLStApp.h < prev    next >
Text File  |  1994-10-18  |  1KB  |  43 lines

  1. /*
  2.     Little Smalltalk, version 3
  3.     Written by Tim Budd, Oregon State University, July 1988
  4.  
  5.     Symantec Think Class Library interface code ⌐Julian Barkway, April 1994 
  6.  
  7.     CLStApp.h
  8.     ---------
  9.     
  10.     Application related functions
  11. */
  12.  
  13. #pragma once
  14. #include "CApplication.h"
  15.  
  16. struct CLStApp : CApplication {
  17. public:
  18.     EventRecord        lastEvent;            /* Hold on to current event */
  19.     short            menuID, menuItem;        // Normally the selected menu and menu item
  20.                                             // but if 'Quit' is selected in the 'File'
  21.                                             // menu, menuID will contain 0xFFFF.
  22.     Boolean            smalltalkCmd;        /* Differentiate between TCL Cmds and ours */
  23.     short            winPart;
  24.  
  25.     SFReply            theFile;            // The file to open on receiving an 
  26.                                         // 'open document' event (NULL if event not
  27.                                         // present).
  28.                                         
  29.     Str255             versionStr;            // The current version string - as obtained 
  30.                                         // from the 'vers' resource.
  31.     
  32.     void    ILStApp                (void);
  33.     void    SetUpFileParameters    (void);
  34.     void    DoCommand            (long commandNo);
  35.     Boolean    Quit                (void);
  36.     void    MakeSwitchboard        (void);
  37.     void    DoMessageAlert        (char *msg);
  38.     short     DoYNCAlert            (char *msg);
  39.     void    DoAbout                (long delay);
  40.  
  41.     void    OpenDocument        (SFReply *macSFReply);
  42. };
  43.